<?php
declare (strict_types = 1);

namespace app\admin\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class ChargeOff extends Model
{
    /**
     * @param $data
     * 核销记录
     */
    public function orderAll($data)
    {
        $charge_off = self::create($data);
        if (!$charge_off){
            return $charge_off->order_no;
        }else{
            return false;
        }
    }
}
